@x12i/reportic-render-html 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +14 -1
- package/dist/index.js +452 -82
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,19 @@ declare function chartSvg(node: SemanticNode, report: PreparedReport, options?:
|
|
|
7
7
|
/** One figure as a standalone SVG. Colors come from the theme, never from the data. */
|
|
8
8
|
declare function figureSvg(node: SemanticNode, report: PreparedReport, options?: ReportOptions): string;
|
|
9
9
|
|
|
10
|
+
/** SVG for a kit chart. Colors come from the report theme, not from kit CSS variables. */
|
|
11
|
+
declare function kitChartSvg(node: SemanticNode, report: PreparedReport, options?: ReportOptions): string;
|
|
12
|
+
/** The numbers behind a kit chart, formatted for the report locale. */
|
|
13
|
+
declare function kitChartTable(node: SemanticNode, report: PreparedReport): {
|
|
14
|
+
columns: {
|
|
15
|
+
label: string;
|
|
16
|
+
align?: 'right';
|
|
17
|
+
}[];
|
|
18
|
+
cells: string[][];
|
|
19
|
+
};
|
|
20
|
+
/** The long description a screen reader gets, generated from the same model the chart draws. */
|
|
21
|
+
declare function kitChartDescription(node: SemanticNode, report: PreparedReport): string;
|
|
22
|
+
|
|
10
23
|
type ImportedAsset = {
|
|
11
24
|
bytes: Uint8Array;
|
|
12
25
|
mediaType: string;
|
|
@@ -87,4 +100,4 @@ declare function renderMarkdown(report: PreparedReport, options?: ReportOptions)
|
|
|
87
100
|
assets: Asset[];
|
|
88
101
|
}>;
|
|
89
102
|
|
|
90
|
-
export { IMPORT_GUIDE, type ImportNote, type ImportOptions, type ImportResult, type ImportedAsset, type PageSetup, type UnboundSlot, assetData, chartSvg, chartTable, cleanMarkdownHtml, diagramVisuals, figureSvg, findBrowser, guideFor, importHtml, renderHtml, renderMarkdown, reportCss, tableHtml, withBrowser };
|
|
103
|
+
export { IMPORT_GUIDE, type ImportNote, type ImportOptions, type ImportResult, type ImportedAsset, type PageSetup, type UnboundSlot, assetData, chartSvg, chartTable, cleanMarkdownHtml, diagramVisuals, figureSvg, findBrowser, guideFor, importHtml, kitChartDescription, kitChartSvg, kitChartTable, renderHtml, renderMarkdown, reportCss, tableHtml, withBrowser };
|